{% extends "base.html" %}

{% block title %}万屏时代OPC--访问记录{% endblock %}

{% block panel_heading %}
  访问记录
{% endblock %}

{% block panel_body %}
  <table id="visit-record-table" class="table table-bordered table-hover table-condensed table-striped">
    <thead>
      <tr>
        <th>项目ID</th>
        <th>工程商ID</th>
        <th>手机号码</th>
        <th>姓名</th>
        <th>访问渠道</th>
        {# <th>访问次数</th> #}
        <th>项目发布时间</th>
        <th>首次访问时间</th>
        <th>最近访问时间</th>
      </tr>
    </thead>
    <tbody>
      {% for record in records %}
      <tr>
        <td>{{ record.demand_id }}</td>
        <td>{{ record.user_id }}</td>
        <td>{{ record.user.mobile | encrypt }}</td>
        <td>{{ record.user.nickname }}</td>
        <td>{{ record.channel_display }}</td>
        {# <td>{{ record.visit_count }}</td> #}
        <td>{{ record.demand_published_datetime }}</td>
        <td>{{ record.created_datetime }}</td>
        <td>{{ record.updated_datetime }}</td>
      </tr>
      {% endfor %}
    </tbody>
  </table>

{% endblock %}

